<@mits.headerDiv />

   <script type='text/javascript' src='${base}/dwr/interface/trackLogMgr.js'></script>
  <script type='text/javascript' src='${base}/dwr/engine.js'></script>
  <script type='text/javascript' src='${base}/dwr/util.js'></script>
<div class="Main" id="Main">
	<!--屏幕切换-->
	<!--左边-->
	<!--右边-->
	<div class="Main_body" id="Main_body">
		<div class="Main_right_top">
		  <div class="Main_bodyListBar_head">当前位置:查缉布控>>布控管理>>本地布控 </div>
		  <br/>
		</div>
		
		  <div class="Main_bodyListBar">
		    <form name="thisForm" id="thisForm" action="" method="post">	   		  
		    <div class="Main_bodyListBar_head"><span>布控类别</span> </div>
	        <div class="Main_bodyListBar_body">
 	        <table border="0" cellspacing="1" cellpadding="0" class="addTable" >
						<tr>
							<td class="title">布控类别：<font color="red">*</font></td>
							<td class="content2" >
							<select id="surveillance.surveillanceType" name="surveillance.surveillanceType">
			                <option value="1" >24小时内违法数据</option>
			                </select></td>
					    	<td class="content" colspan="2"></td>
					  	</tr>
					</table>
			</div>
		    <div class="Main_bodyListBar_head"><span>车辆信息</span> </div>
	        <div class="Main_bodyListBar_body">
 	        <table border="0" cellspacing="1" cellpadding="0" class="addTable" >
						<tr>
							<td class="title">号牌种类：<font color="red">*</font></td>
							<td class="content" >
                 <select width="50" id="surveillance.plateType" name="surveillance.plateType" value="${surveillance.plateType?if_exists?html}" dataType="Require" msg='号牌种类必选'  >
					<option value="大型汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="大型汽车">selected</#if> >大型汽车</option>
					<option value="小型汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="小型汽车">selected</#if> >小型汽车</option>
					<option value="使馆汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="使馆汽车">selected</#if> >使馆汽车</option>	
					<option value="领馆汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="领馆汽车">selected</#if> >领馆汽车</option>
					<option value="境外汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="境外汽车">selected</#if> >境外汽车</option>
					<option value="外籍汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="外籍汽车">selected</#if> >外籍汽车</option>	
					<option value="普通摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="普通摩托车">selected</#if> >普通摩托车</option>	
					<option value="轻便摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="轻便摩托车">selected</#if> >轻便摩托车</option>	
					<option value="使馆摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="使馆摩托车">selected</#if> >使馆摩托车</option>	
					<option value="领馆摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="领馆摩托车">selected</#if> >领馆摩托车</option>	
					<option value="境外摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="境外摩托车">selected</#if> >境外摩托车</option>	
					<option value="外籍摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="外籍摩托车">selected</#if> >外籍摩托车</option>	
					<option value="农用运输车" <#if surveillance.plateType?exists&&surveillance.plateType=="农用运输车">selected</#if> >农用运输车</option>
					<option value="拖拉机" <#if surveillance.plateType?exists&&surveillance.plateType=="拖拉机">selected</#if> >拖拉机</option>	
					<option value="挂车" <#if surveillance.plateType?exists&&surveillance.plateType=="挂车">selected</#if> >挂车</option>	
					<option value="教练汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="教练汽车">selected</#if> >教练汽车</option>	
					<option value="教练摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="教练摩托车">selected</#if> >教练摩托车</option>	
					<option value="试验汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="试验汽车">selected</#if> >试验汽车</option>	
					<option value="试验摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="试验摩托车">selected</#if> >试验摩托车</option>	
					<option value="临时入境汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="临时入境汽车">selected</#if> >临时入境汽车</option>
					<option value="临时入境摩托车" <#if surveillance.plateType?exists&&surveillance.plateType=="临时入境摩托车">selected</#if> >临时入境摩托车</option>
					<option value="临时行驶车" <#if surveillance.plateType?exists&&surveillance.plateType=="临时行驶车">selected</#if> >临时行驶车</option>	
					<option value="警用汽车" <#if surveillance.plateType?exists&&surveillance.plateType=="警用汽车">selected</#if> >警用汽车</option>	
					<option value="警用摩托" <#if surveillance.plateType?exists&&surveillance.plateType=="警用摩托">selected</#if> >警用摩托</option>	
					<option value="其它" <#if surveillance.plateType?exists&&surveillance.plateType=="其它">selected</#if> >其它</option>	
					</select>							
					 </td>
					    	<td class="title">号牌号码<font color="red">*</font></td>
					    	<td class="content">
					    	<select id="surveillanceplateNumberPrefix" name="surveillanceplateNumberPrefix" 
					    	  onclick="prvClick()" onchange="prvChange()">
												<#if provices?exists>
	                <#list provices as provice>
	                <option value="${provice?if_exists}" >${provice?if_exists}</option>
	                </#list>
	                </#if>
			                </select>
					    	<input type="text" name="surveillance.plateNumber" id="surveillance.plateNumber"
					    	onKeypress="if (((event.keyCode>= 32 && event.keyCode < 48 ) && event.keyCode != 42)  
					 || (event.keyCode > 57 && event.keyCode < 65) || (event.keyCode > 90 && event.keyCode < 97) || (event.keyCode >= 123 && event.keyCode <= 126)) event.returnValue = false;"
					 maxlength="6"
					    	 dataType="Require" msg='号牌号码必填' maxlength="7"   value="${surveillance.plateNumberSufix?if_exists?html}"    dataType="required"  msg='号牌号码不能为空或中文或特殊字符,长度不能超过7'  class="input_short" onkeypress="this.value=this.value.toUpperCase();" onkeyup="this.value=this.value.toUpperCase();" /></td>
					  	</tr>
						<tr>
							<td class="title">车辆颜色：</td>
							<td class="content" ><select id="surveillance.vehicleColor" name="surveillance.vehicleColor" value="${surveillance.vehicleColor?if_exists?html}">
			                <option value="0" <#if surveillance.vehicleColor?exists&&surveillance.vehicleColor=="0">selected</#if> >白色</option>
			                <option value="1" <#if surveillance.vehicleColor?exists&&surveillance.vehicleColor=="1">selected</#if> >黄色</option>
			                <option value="2" <#if surveillance.vehicleColor?exists&&surveillance.vehicleColor=="2">selected</#if> >蓝色</option>
			                <option value="3" <#if surveillance.vehicleColor?exists&&surveillance.vehicleColor=="3">selected</#if> >黑色</option>
			                <option value="4" <#if surveillance.vehicleColor?exists&&surveillance.vehicleColor=="4">selected</#if> >其它</option>
			                </select></td>
					    	<td class="title">车辆品牌：</td>
					    	<td class="content">
					    	<input type="text" name="surveillance.vehicleBrand" value="${surveillance.vehicleBrand?if_exists?html}"  maxlength="50"   class="input_short"/>
					    	</td>
					  	</tr>
						<tr>
							<td class="title">车辆特征：</td>
							<td class="content" colspan="3">
							<input type="text" name="surveillance.vehicleCharacter" value="${surveillance.vehicleCharacter?if_exists?html}" maxlength="100"   class="input_big"/>
							</td>
					  	</tr>						  						  	
					</table>
			</div>
		    <div class="Main_bodyListBar_head"><span>布控信息</span> </div>
	        <div class="Main_bodyListBar_body">
 	        <table border="0" cellspacing="1" cellpadding="0" class="addTable" >
						<tr>
							<td class="title">布控机关：<font color="red">*</font></td>
							<td class="content" >${surveillance.surveillancDept?if_exists.departmentName?if_exists}
							<input type="hidden" name="surveillance.surveillancDept.id" id="surveillance.surveillancDept.id" value="${surveillance.surveillancDept?if_exists.id?if_exists?html}"    />
							</td>
					    	<td class="title">布控人<font color="red">*</font></td>
					    	<td class="content">${sessionUser?if_exists.userName?if_exists?html}
					    	
					    	</td>
					  	</tr>
						<tr>
							<td class="title">布控人联系方式：</td>
							<td class="content" >
							 <input type="text" name="surveillance.contactWay" value="${surveillance.contactWay?if_exists?html}" maxlength="50"   class="input_short"/>
                            </td>
					    	<td class="title">布控起始时间：</td>
					    	<td class="content">
							<span class="content2">
								<input id="surveillance.startingDate" name="surveillance.startingDate"   value="${(surveillance.startingDate?string('yyyy-MM-dd hh:mm:ss'))?if_exists}" type="text"  class="input_calendar_long" style="width:130px"  onclick="displayCalendar('',$('surveillance.startingDate'),'yyyy-mm-dd hh:ii:00',this,true)"  />
							</span>					    	
					    	</td>
					  	</tr>
						<tr>
					    	<td class="title">布控截止时间：</td>
					    	<td class="content">
							<span class="content2">
								<input id="surveillance.expiringDate" name="surveillance.expiringDate" value="${(surveillance.expiringDate?string('yyyy-MM-dd hh:mm:ss'))?if_exists}" type="text" class="input_calendar_long" style="width:130px" onclick="displayCalendar('',$('surveillance.expiringDate'),'yyyy-mm-dd hh:ii:00',this,true)"  /> 
							</span>					    	
					    	</td>
							<td class="content" colspan="2">
							</td>					    	
					  	</tr>
						<tr>
					    	<td class="title">处置方式：</td>
					    	<td class="content" colspan="3">
					    	<input type="text" name="surveillance.treatmentMethod"  value="${surveillance.treatmentMethod?if_exists?html}"  maxlength="50"   class="input_big"/>
					    	</td>			    	
					  	</tr>
						<tr>
					    	<td class="title">简要案情：</td>
					    	<td class="content" colspan="3">
					    	<textarea name="surveillance.briefCase" id="surveillance.briefCase"   class="textarea_long">${surveillance.briefCase?if_exists?html}</textarea>
					    	</td>			    	
					  	</tr>	
						<tr>
					    	<td class="title">备注信息：</td>
					    	<td class="content" colspan="3">
					    	 <textarea name="surveillance.remark" id="surveillance.remark" class="textarea_long">${surveillance.remark?if_exists?html}</textarea>
					    	</td>			    	
					  	</tr>						  						  							  							  						  	
					</table>
			</div>									
			</form>	
				<div class="Main_bodyListBar_bottom">
				  <div class="Main_bodyListBar_button">
				    <input type="button" class="button" onclick="viewSurveillance()" value="预览" /> 
				  </div>
				</div>			
			<div class="Main_bodyListBar_foot"></div>
		  </div>
		</div>
</div>
<script lanague ="javascript">
 function viewSurveillance() {
  if(Validator.Validate($('thisForm'),3)){
  //if(($("surveillance.plateNumber").value).indexOf($("surveillanceplateNumberPrefix").value)<0){
  //  Validator.addErrorMessage($("surveillance.plateNumber"),"号牌号码有误,请选择地区。");
  //  return;
  // }   
    $('thisForm').action="${base}/auth/surveillance/preView.action";
    $('thisForm').submit();
  } 
 }
  function prvClick() {
 if($('surveillanceplateNumberPrefix').options[0].selected == true) {
  $('surveillance.plateNumber').value = $('surveillanceplateNumberPrefix').value  
 }

 }
 function prvChange() {

  $('surveillance.plateNumber').value = $('surveillanceplateNumberPrefix').value
 }
</script>
<@mits.footerDiv />


